<? startScript('jquery, jquery.tools'); ?><script type="text/javascript">
	jQuery(function($) { $("ul.jt-tabs").tabs("div.jt-panes > div"); });
</script><? endScript(); ?>

<form action="" method="post">

<fieldset><legend> <?=t('Ticket settings', 'cpn')?> </legend>

	<p><label><?=t('Registration: Confirmation ticket expiration time', 'cpn')?>
		<input type="text" name="new_user_expires" class="wide" value="<?=hdat('settings', 'new_user_expires')?>">
	</label></p>

</fieldset>

<fieldset><legend> <?=t('Mailing settings', 'cpn')?> </legend>

	<p><label><?=t('e-mail sender address', 'cpn')?>
		<input type="text" name="mail_sender" class="wide" value="<?=hdat('settings', 'mail_sender')?>">
	</label></p>

	<ul class="jt-tabs"><?
	
		foreach($DATA['langs'] as $lang) {
			?><li><a href="#<?=$lang['text']?>"><?=$lang['assoc']?></a></li><? 
		} 
		
	?></ul>
	
	<div class="jt-panes"><? $t = true; 
	
			foreach($DATA['langs'] as $lang) { $l = $lang['text'];
	
			?><div class="jt-pane" style="<?=$t ? 'display:block' : ''?>">

				<p><label><?=t('e-mail sender name', 'cpn')?>
					<input type="text" name="mail_sender_name[<?=$l?>]" class="wide" value="<?=hdat('settings', 'data', $l, 'mail_sender_name')?>">
				</label></p>
	
			</div><? 
		
		$t = false; }
	
	?></div>

</fieldset>

<fieldset><legend> <?=t('Mailing templates', 'cpn')?> </legend>

	<ul class="jt-tabs"><?
	
		foreach($DATA['langs'] as $lang) {
			?><li><a href="#<?=$lang['text']?>"><?=$lang['assoc']?></a></li><? 
		} 
		
	?></ul>
	
	<div class="jt-panes"><? $t = true; 
	
			foreach($DATA['langs'] as $lang) { $l = $lang['text'];
	
			?><div class="jt-pane" style="<?=$t ? 'display:block' : ''?>">

				<p><label><?=t('Registration: e-mail address confirmation subject', 'cpn')?>
					<input type="text" name="mail_confirmation_subj[<?=$l?>]" class="wide" value="<?=hdat('settings', 'data', $l, 'mail_confirmation_subj')?>">
				</label></p>

				<p><label><?=t('Registration: e-mail address confirmation', 'cpn')?>
					<textarea name="mail_confirmation[<?=$l?>]" class="wide"><?=dat('settings', 'data', $l, 'mail_confirmation')?></textarea>
				</label></p>

				<p><label><?=t('Registration: change e-mail address confirmation subject', 'cpn')?>
					<input type="text" name="mail_change_confirmation_subj[<?=$l?>]" class="wide" value="<?=hdat('settings', 'data', $l, 'mail_change_confirmation_subj')?>">
				</label></p>

				<p><label><?=t('Registration: change e-mail address confirmation', 'cpn')?>
					<textarea name="mail_change_confirmation[<?=$l?>]" class="wide"><?=dat('settings', 'data', $l, 'mail_change_confirmation')?></textarea>
				</label></p>


				<p><label><?=t('Password recovery e-mail subject', 'cpn')?>
					<input type="text" name="mail_pass_recovery_subj[<?=$l?>]" class="wide" value="<?=hdat('settings', 'data', $l, 'mail_pass_recovery_subj')?>">
				</label></p>

				<p><label><?=t('Password recovery e-mail', 'cpn')?>
					<textarea name="mail_pass_recovery[<?=$l?>]" class="wide"><?=dat('settings', 'data', $l, 'mail_pass_recovery')?></textarea>
				</label></p>


				<p><label><?=t('Registration: "confirmation e-mail sent" text', 'cpn')?>
					<textarea name="mail_sent[<?=$l?>]" class="wide"><?=dat('settings', 'data', $l, 'mail_sent')?></textarea>
				</label></p>


			</div><? 
		
		$t = false; }
	
	?></div>

</fieldset>

	<p><input type="submit" name="editor_save" value="<?=t('Save', 'cpn')?>" /></p>

</form>
